<?php

class Admin_Form_StaticPage_Add extends My_FormAdmin {

    public function init() {
        parent::init();
        $this->setMethod('post');
        $this->setAction($this->getView()->url(array('controller' => 'static-page', 'action' => 'save'), 'admin', true));

        $this->setTitle($this->translate('XXX_ADMIN_STATIC_PAGE_ADD_FORM_TITLE'));
        
        $daoStaticPage= new Application_Model_DAO_StaticPage();
        
        $name = new Zend_Form_Element_Text('title');
        $name->setLabel(_('XXX_ADMIN_STATIC_PAGE_FORM_TITLE_LABEL'));
        $name->setRequired();
        $this->addElement($name);
        
        $name = new My_Form_Element_Wyswig('content');
        $name->setLabel(_('XXX_ADMIN_STATIC_PAGE_FORM_CONTENT_LABEL'));
        $name->setControl(array('font-styles', 'html', 'link', 'image',));
        $this->addElement($name);  
        
        $this->addSubmitElement();

    }

}

